//
//  BaseViewController.m
//  OMHWatch
//
//  Created by dllo on 15/9/23.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
   // self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"back.png"] style:UIBarButtonSystemItemEdit target:self action:@selector(leftBarButtonItem:)];
//    UIButton *button  = [UIButton buttonWithType:UIButtonTypeSystem];
//    button.frame = CGRectMake(0 , 0, 25, 25);
//    //设置按钮图片
//    [button setBackgroundImage:[UIImage imageNamed:@"back.png"] forState:UIControlStateNormal];
//    //设置按钮点击事件
//    [button addTarget:self action:@selector(button:) forControlEvents:UIControlEventTouchUpInside];
//    UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithCustomView:button];
//    self.navigationItem.leftBarButtonItem = item;
}
- (void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBarHidden = NO;
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

//-(void)button:(UIButton *)button
//{
//    [self.navigationController popViewControllerAnimated:YES];
//    //self.navigationController.navigationBarHidden = YES;
//    self.navigationController.navigationBar.hidden = YES;
//}


@end
